import * as React from 'react';
import './index.less'
import classnames from 'classnames'

export interface TagProps {
  title: string
  className?: any
  onClick?: any
}

export default class Tag extends React.Component<TagProps> {
  render() {
    const {
      title,
      className,
      onClick
    } = this.props;

    return (
      <div className={classnames('com-tag hover-card', className)} onClick={onClick}>{title}</div>
    );
  }
}
